dir_list=$1
dir_reduction=`pwd`
for subdir in `cat $dir_list`
do
	cd $subdir
	ls *.fit >listfit
	for fitfile in `cat listfit`
	do
		echo $fitfile
		cp $fitfile $dir_reduction
		cd $dir_reduction
		#sh ~/software/softgft_mainFocus/xgft_ot.sh $fitfile
		sh ~/software/softgft_mainFocus/xgft_ot_LocalPs1_usno.sh $fitfile
		wait
		cd $subdir
	done
done
